Reseller Get Users API
POST /resellerGetUsers
Description
This API endpoint retrieves a paginated list of users associated with a reseller. The response includes information about the total number of elements, the size of each page, and the current page number.
Request Body
The request uses GraphQL to perform the resellerGetUsers
query, which requires page
and size
variables to specify pagination details.
Query:
query resellerGetUsers ($page: Int, $size: Int) {
resellerGetUsers (page: $page, size: $size) {
totalElements
size
number
}
}
GraphQL Variables:
{
"page": 0,
"size": 0
}
Example Request:
curl --location '' \
--header 'Content-Type: application/json' \
--data '{"query":"query resellerGetUsers ($page: Int, $size: Int) {\n resellerGetUsers (page: $page, size: $size) {\n totalElements\n size\n number\n }\n}","variables":{"page":1,"size":10}}'
Response:
-
Success (200 OK):
- The response includes pagination details about the users.
{
"data": {
"resellerGetUsers": {
"totalElements": 100,
"size": 10,
"number": 1
}
}
}totalElements
: The total number of users available.size
: The number of users per page.number
: The current page number.
-
Error (4XX/5XX):
- If there is an issue with the request or server error, the response will include an error message and status code.
Note:
This endpoint is useful for retrieving a list of users with pagination support. Adjust the page
and size
variables to control the pagination behavior and retrieve the desired subset of users.